package cn.stylefeng.guns.modular.business.frequency.orderbonus.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 奖金记录表(activityMq异步处理)
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderBonusParam extends BaseParam {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空",groups = {edit.class})
    private String id;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * create_user
     */
    private Long createUser;

    /**
     * update_time
     */
    private Date updateTime;

    /**
     * update_user
     */
    private Long updateUser;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空",groups = {add.class,edit.class})
    private String orderId;

    /**
     * 类型：1.制单 2.提短 3.验车 4.发车 5.交付 6.指派提车
     */
    @NotNull(message = "类型：1.制单 2.提短 3.验车 4.发车 5.交付 6.指派提车不能为空",groups = {add.class,edit.class})
    private Integer type;

    /**
     * 状态：1.未生效 2.有效 3.无效
     */
    @NotNull(message = "状态：1.未生效 2.有效 3.无效不能为空",groups = {add.class,edit.class})
    private Integer status;

    private String key;


    /**
     * 金额
     */
    @NotNull(message = "金额不能为空",groups = {add.class,edit.class})
    private BigDecimal fee;

    /**
     * user_id
     */
    @NotNull(message = "user_id不能为空",groups = {add.class,edit.class})
    private Long userId;

    /**
     * 生效时间
     */
    @NotNull(message = "生效时间不能为空",groups = {add.class,edit.class})
    private Date effectTime;

    private Date startTime;

    private Date endTime;

}
